package com.oig.base.api;

import com.oig.base.api.factory.EnumServiceFallBackFactory;
import com.oig.sys.base.vo.EnumVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

@FeignClient(contextId = "enumService", value = "sys-base-server",path = "/enum", fallbackFactory = EnumServiceFallBackFactory.class)
public interface EnumService {

    @PostMapping(value = "/getByCode/{dictCode}")
    EnumVo getByCode(@PathVariable("dictCode") String dictCode);


    //@Operation(summary = "获取所有字典")
    @PostMapping(value = "/getAllEnumItem")
    Map<String, Map<String, String>> getAllEnumItem();

}
